package apiday02.wapper;

public class XXXValueDemo {

	public static void main(String[] args) {
		//范围之内的转换没有问题
		Double x = 567D;
		int i = x.intValue();
		System.out.println(i);

		Double pi = 3.1415926535897932384626433;
		//精度丢失
		int n = pi.intValue();
		System.out.println(n);
		float f = pi.floatValue();
		System.out.println(f);

		//溢出
		Double d = 123890192837899123.78238;
		int m = d.intValue();
		System.out.println(m);

	}

}
